package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Orders;

import javax.xml.transform.Result;

public interface OrderService extends IService<Orders> {
    void submit(Orders orders);
/*
    default Orders getOnly(QueryWrapper<Orders> wrapper){
        wrapper.last("limit 1");
        return this.getOne(wrapper);
    }
    Result getOnlyOne();*/
}
